/**
 * Created by Moudi on 2017/3/19.
 */
@media only screen and (max-width: 700px) {
  #show-stage {
    transform: translateY(0) !important;
    tramsition: 2s !important;
  }
  .nav {
    .animal-nav {
      top: 25px;
      right: 35px;
      width: 160px;
      margin-left: 0;
      margin-top: 0;
      li {
        float: left;
        &:nth-child(2) {
          margin: 0 24px;
        }
        a {
          transform: rotate(-90deg);
        }
        &:nth-child(2) {
          a {
            height: 54px;
            width: 54px;
            text-indent: -99999px;
            margin: 0;
            transform: rotate(0);
            &::after {
              content: "!";
              position: absolute;
              top: 27%;
              left: 51%;
              margin: -8% 0 0 -8%;
              font-size: 30px;
              color: #181818;
              text-indent: 0;
              transition: 0.26s;
            }
          }
        }
      }
    }
    .animal-nav .popout, .main-nav .popout {
      display: none;
    }
    .main-nav {
      top: 21px;
      left: 23px;
      margin-top: 0;
      & > li {
        float: left;
        overflow: hidden;
        &:nth-child(3) {
          display: none;
        }
        a {
          background: none;
          &.nav-btn {
            transform: scale(1.5);
          }
        }
      }
    }
    .animal-info {
      top: auto;
      bottom: 27px;
      left: 31px;
      margin-left: 0;
      text-align: left;
      li:nth-child(2) {
        h2 {
          font-size: 36px;
        }
      }
    }
    footer {
      right: 0;
      left: auto;
      bottom: 0;
      height: 0;
      text-align: center;
      transition: 0.43s cubic-bezier(1, 0, 0, 1);
      &::before {
        content: '';
        display: inline-block;
        height: 100%;
        vertical-align: middle;
        margin-right: -0.25em;
      }
      ul {
        display: none;
        vertical-align: middle;
        width: 80%;
        li {
          display: block;
          padding: 2em 0;
          opacity: 0;
          border-bottom: 1px solid #ededed;
          font-size: 16px;
          &:last-child span.wee {
            display: none;
          }
          a {
            color: #cacaca !important;
            background: none;
            padding: 0 !important;
          }
        }
      }
      .footer-nav {
        position: absolute;
        display: block;
        bottom: 33px;
        right: 28px;
        height: 30px;
        width: 30px;
        div {
          left: 13px;
          &::before {
            top: 9px;
          }
          &::after {
            top: 18px;
          }
        }
        div, div::before, div::after {
          position: absolute;
          width: 5px;
          height: 5px;
          background-color: #FFF;
          border-radius: 10px;
        }
        div::before, div::after {
          content: "";
          left: 0;
        }
      }
      &.mobile-footer-active {
        height: 100%;
        width: 100%;
        background-color: #ffe;
        ul {
          display: inline-block;
          li {
            opacity: 1;
            a {
              padding: 0 !important;
              color: #cacaca !important;
              background: none;
            }
          }
        }
        .footer-nav {
          right: 50%;
          bottom: 90%;
          margin-right: -15px;
          div {
            left: 4px;
            bottom: 12px;
            transform: rotate(45deg);
          }
          div, div::after, div::before {
            width: 25px;
            background-color: #bbb;
          }
          div::before {
            transform: rotate(-90deg);
            top: 0;
          }
          div::after {
            opacity: 0;
          }
        }
      }
    }
  }
  .content-wrapper {
    .content {
      .content-info {
        padding: 10% 0;
        margin: 0;
      }
    }
  }
}

@media only screen and (max-width: 770px) {
  .animal-info {
    li {
      &:nth-child(1), &:nth-child(3) {
        display: none;
      }
    }
  }
}

.small-nav {
  .hover-detector {
    display: none;
  }
  .all-animals {
    .animal-nav-content {
      transition: .34s .4s;
    }
    .nav {
      .main-nav > * {
        transition: all .2s;
      }
      .all-animals-off-btn {
        position: fixed;
        margin-left: -33px;
        top: 8%;
        left: 50%;
      }
    }
  }
  .animal-nav-content {
    position: absolute;
    z-index: 100;
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    -webkit-mask: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 7%, white 20%, white 100%) no-repeat center center/cover;
    .title-content {
      display: none;
    }
    ul {
      width: 100%;
      padding: 110px 0 30px;
    }
    li {
      padding: 37px 0 30px;
      text-align: center;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      h2 {
        font-size: 38px;
        margin-bottom: .18em;
      }
      h4 {
        font-size: 20px;
        margin-bottom: .6em;
      }
    }
  }
}

@media only screen and (max-width: 1150px) {
  .loading-title {
    margin-top: 4%;
  }
  .loading-intro {
    p {
      font-size: 18px;
    }
  }
}
@media only screen and (max-width: 700px) {
  .loading-title {
    margin-top: 18%;
  }
  .loading-intro {
    p {
      font-size: 16px;
    }
  }
}
@media only screen and (max-width: 600px) {
  .loading-title {
    margin-top: 24%;
  }
  .loading-intro {
    p {
      font-size: 14px;
    }
  }
}

@media only screen and (min-width: 1440px) and (max-width: 1920px) {
  #show-stage {
    max-width: 850px !important;
    max-height: 566px !important;
  }
  .loading-title {
    margin-top: 7% !important;
    font-size: 20px;
    p {
      font-size: 14px;
    }
  }
  .intro-content {
    margin-top: 7% !important;
  }
  .nav {
    .animal-nav {
      right: 54px;
      margin-top: -142px;
      li:nth-child(2) {
        padding: 7px 0 14px;
      }
    }
    .main-nav {
      left: 54px;
      li {
        &:nth-child(1) {
          transform-origin: 50% 170%;
        }
        &:nth-child(3) {
          transform-origin: 50% -70%;
        }
      }
    }
    .animal-nav li, .main-nav li {
      transform: scale(1.13);
    }
    .nav-btn.close {
      transform: scale(1.13);
    }
  }
  .content-wrapper {
    .content {
      .content-info {
        max-width: 630px;
      }
    }
  }

  .intro-content {
    .textuered-type {
      line-height: 40px !important;
      font-size: 40px !important;
    }
    p:nth-of-type(2) {
      font-size: 28px;
      margin-bottom: 55px;
      span {
        font-size: 28px;
      }
    }
    a {
      padding: 21px 39px 23px 39px;
      font-size: 28px;
    }
  }
  .nav {
    .animal-info {
      margin-top: 16%;
    }
    footer {
      ul {
        li {
          font-size: 18px;
        }
      }
    }
  }
  .content-wrapper {
    .content {
      .content-info {
        padding: 10% 10%;
        margin: 0;
        .infos {
          ul {
            li {
              font-size: 21px;
            }
          }
          p {
            font-size: 22px;
          }
          p:nth-child(3) {
            font-size: 24px;
          }
        }
      }
    }
  }
  .title-content {
    h1 {
      font-size: 30px;
    }
    h2 {
      font-size: 80px;
    }
    p {
      font-size: 22px;
    }
  }
  html:not(.small-nav) {
    .animal-nav-content {
      width: 400px;
      margin-left: -192px;
      margin-top: 25px;
      ul {
        margin-top: -126px;
      }
      ul {
        h2 {
          font-size: 46px;
        }
        h4 {
          font-size: 26px;
        }
        & > span {
          font-size: 22px;
        }
      }
    }
  }
  .overlay {
    & > div {
      max-width: 700px;
    }
    h2 {
      font-size: 32px;
    }
    p {
      font-size: 22px;
      line-height: 24px;
      &:nth-child(2) {
        font-size: 25px;
      }
    }
    ul {
      li {
        a {
          font-size: 20px;
        }
      }
    }
  }
  body.all-animals {
    #show-stage {
      transform: scale(1.7) translateY(-10%) !important;
    }
  }
}
@media only screen and (min-width: 1921px) {
  #show-stage {
    max-width: 1000px !important;
    max-height: 666px !important;
  }
  .loading-title {
    margin-top: 6% !important;
    font-size: 24px;
    p {
      font-size: 16px;
    }
  }
  .intro-content {
    margin-top: 6% !important;
  }
  .nav {
    .animal-nav {
      right: 54px;
      margin-top: -142px;
      li:nth-child(2) {
        padding: 18px 0 27px;
      }
    }
    .main-nav {
      left: 54px;
      li {
        &:nth-child(1) {
          transform-origin: 50% 170%;
        }
        &:nth-child(3) {
          transform-origin: 50% -70%;
        }
      }
    }
    .animal-nav li, .main-nav li {
      transform: scale(1.33);
    }
    .nav-btn.close {
      transform: scale(1.33);
    }
  }
  .content-wrapper {
    .content {
      .content-info {
        max-width: 680px;
      }
    }
  }
  .intro-content {
    .textuered-type {
      line-height: 44px !important;
      font-size: 44px !important;
    }
    p:nth-of-type(2) {
      font-size: 30px;
      margin-bottom: 60px;
      span {
        font-size: 30px;
      }
    }
    a {
      padding: 21px 39px 23px 39px;
      font-size: 30px;
    }
  }
  .nav {
    .animal-info {
      margin-top: 16%;
    }
    footer {
      ul {
        li {
          font-size: 21px;
        }
      }
    }
  }
  .content-wrapper {
    .content {
      .content-info {
        .infos {
          ul {
            li {
              font-size: 23px;
            }
          }
          p {
            font-size: 24px;
          }
          p:nth-child(3) {
            font-size: 28px;
          }
        }
      }
    }
  }
  .title-content {
    h1 {
      font-size: 34px;
    }
    h2 {
      font-size: 84px;
    }
    p {
      font-size: 24px;
    }
  }
  html:not(.small-nav) {
    .animal-nav-content {
      width: 420px;
      margin-left: -202px;
      margin-top: 20px;
      ul {
        margin-top: -136px;
      }
      ul {
        h2 {
          font-size: 49px;
        }
        h4 {
          font-size: 29px;
        }
        & > span {
          font-size: 25px;
        }
      }
    }
  }
  .overlay {
    & > div {
      max-width: 980px;
    }
    h2 {
      font-size: 40px;
    }
    p {
      font-size: 30px;
      line-height: 32px;
      &:nth-child(2) {
        font-size: 32px;
      }
    }
    ul {
      li {
        a {
          font-size: 24px;
        }
      }
    }
  }
  body.all-animals {
    #show-stage {
      transform: scale(1.7) translateY(-10%) !important;
    }
  }
}